<template>
  <el-config-provider :locale="currentLocale">
    <router-view />
    <ReDialog />
  </el-config-provider>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { ElConfigProvider } from "element-plus";
import { ReDialog } from "@/components/ReDialog";
import zhCn from "element-plus/es/locale/lang/zh-cn";

export default defineComponent({
  name: "app",
  components: {
    [ElConfigProvider.name]: ElConfigProvider,
    ReDialog
  },
  computed: {
    currentLocale() {
      return zhCn;
    }
  }
});
</script>
<style lang="scss">
.search-form {
  padding: 1rem;
}

.search-form .el-form-item {
  margin-bottom: 0 !important;
}

.search-form .el-form-item:last-child {
  float: right;
  margin-right: 0 !important;
}
.el-input-number .el-input__inner {
  text-align: left !important;
}
.el-input-number.is-controls-right .el-input__wrapper {
  padding-left: 11px !important;
}
</style>
